package com.yjkf.zh.admin.dao;

import com.yjkf.zh.admin.model.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleMapper {

    int deleteByUserId(@Param(value="userId") Long userId);

    int insertUserRole(SysUserRole sysUserRole);

    List<SysUserRole> findUserRoles(@Param(value = "userId") Long userId);

    int deleteByRoleId(@Param(value="roleId") Long roleId);

    List<SysUserRole> findByRoleId(@Param(value="roleId") Long roleId);
    SysUserRole findByUserId(@Param(value = "userId") Long userId);
}
